<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑用户信息</title>
    <script type="text/javascript" src="/sh/js/plugin.js"></script>
    <script type="text/javascript" src="/sh/js/comm.js"></script>
    <script type="text/javascript" src="/sh/js/user/editUser.js"></script>
</head>
<body>
<div style="margin:10px 0;"></div>
<div class="easyui-panel editUser-main" title="用户信息"
     style="width:100%;max-width:600px;padding:10px 30px 10px 10px;">
    <form id="editUserForm" method="post">
        <input type="hidden" th:value="${user.id}" name="id"/>
        <div class="tb-div">
            <input class="easyui-textbox" id="linkman" name="linkman" th:value="${user.linkman}"
                   style="width:86%" data-options="label:'账号:',editable:false"/>
        </div>
        <div class="tb-div">
            <label for="nickname" class="textbox-label textbox-label-before">昵称:</label>
            <input class="easyui-validatebox tb" type="text" id="nickname" name="nickname"
                   th:value="${user.nickname}" style="width:58%"
                   data-options="required:true,validType:'length[3,6]'"/>
        </div>
        <div class="tb-div">
            <label for="phone" class="textbox-label textbox-label-before">手机号:</label>
            <input class="easyui-validatebox tb" type="text" id="phone" name="phone"
                   th:value="${user.phone}" style="width:58%" maxlength="11"
                   onkeyup="this.value=this.value.replace(/[^0-9]+/ ,'')"
                   data-options="validType:'length[11,11]'"/>
        </div>
        <!--<div class="tb-div">
            <label for="pwd1" class="textbox-label textbox-label-before">密码1：</label>
            <input class="easyui-validatebox tb" type="password" id="pwd1" name="pwd"
                   th:value="${user.pwd}" style="width:56%"
                   data-options="required:true,validType:'length[3,20]'"/>
        </div>-->
        <!--<div class="tb-div">
            <label for="pwd2" class="textbox-label textbox-label-before">密码2：</label>
            <input class="easyui-validatebox tb" type="password" id="pwd2" name="pwd2"
                   th:value="${user.pwd}" style="width:56%" invalidMessage="两次输入密码不一致"
                   validType="equalTo['#pwd1']"
                   data-options="label:'密码:',required:true,validType:'length[3,20]'"/>
        </div>-->
        <div class="tb-div">
            <input type="hidden" th:value="${user.departmentId}" id="oldDepartmentId"/>
            <input class="easyui-combobox" id="departmentId" name="departmentId"
                   style="width:86%" data-options="
					data: [
						{value:'ar',text:'车间'},
						{value:'bg',text:'办公室'},
					],
					editable: false,
					panelHeight: 'auto',
					label: '部门:',
					labelPosition: 'left'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${user.status}" id="oldStatus"/>
            <input class="easyui-combobox" id="status1" name="status"
                   style="width:86%" data-options="label: '状态:',labelPosition: 'left'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${user.roleId}" id="oldRoleId"/>
            <input type="hidden" th:value="${user.roleName}" id="oldRoleName"/>
            <input class="easyui-combobox" id="rId" name="roleId" type="text"
                   style="width:86%" data-options="label: '角色:',labelPosition: 'left'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="described" th:value="${user.described}"
                   style="width:86%" data-options="label:'描述:'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="remark" th:value="${user.remark}"
                   style="width:86%" data-options="label:'备注:'"/>
        </div>
        <!--<div class="tb-div">
            <input class="easyui-textbox" name="created" th:value="${#dates.format(roles.created, 'yyyy年MM月dd日 HH时mm分ss秒')}"
                   style="width:86%" data-options="label:'创建时间:',editable:false"/>
        </div>-->
    </form>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" id="save"
           style="width:85px" iconCls="icon-save">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" id="restore"
           style="width:85px" iconCls="icon-clear">重置</a>
    </div>
</div>
<style>
    .tb{
        border-radius: 5px;
        height: 30px;
        line-height: 30px;
        font-family: 微软雅黑;
        font-size:13px;
        border:1px solid #ccc;
        box-sizing:border-box;
    }
</style>
</body>
</html>